.mainBox{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
main{
    flex: 1;
    overflow-y: scroll;
}
footer{
    height: 50px;
}